// import { createRouter, createWebHistory } from 'vue-router'
// const routerHistory = createWebHistory();
// const router = createRouter({
//     history: routerHistory,
//     routes: [{
//             path: '/',
//             redirect: '/home'
//         },
//         {
//             path: '/home',
//             component: () =>
//                 import ('../views/Home.vue')
//         },
//     ]
// })
// export default router
import { createRouter, createWebHistory } from "vue-router";
let routes = [{
        path: '/',
        redirect: '/home'
    },
    {
        path: '/home',
        component: () =>
            import ('@/views/Home.vue')
    },
    {
        path: '/test',
        component: () =>
            import ('@/views/test.vue')
    }
]

const router = createRouter({
    history: createWebHistory('/'),
    routes: routes
})
export default router;